import React from 'react';
import {Text} from 'react-native';

export default class Test extends React.Component{
    static navigationOptions = ({navigation})=>({
        headerTitle:`${navigation.state.params.title}`
    })
    render(){

        return (
            <Text>
                {this.props.navigation.state.params.title}
            </Text>
        )
    }
}
